package controller

import (
	"net/http"
	"scoce_estimate/data_process"

	"github.com/gin-gonic/gin"
)

func HomePage(c *gin.Context) {
	c.HTML(http.StatusOK, "home.html", gin.H{"cspj_total": data_process.GetCSPJTotal(),
		"csps_total":   data_process.GetCSPSTotal(),
		"cspj_overall": data_process.GetOverallTotalCSPJ(),
		"csps_overall": data_process.GetOverallTotalCSPS()})
}
